import 'package:json_annotation/json_annotation.dart';

part 'news_dart_bean.g.dart';

@JsonSerializable()
class news_dart_bean{
  int code;
  String message;
  List<NewsResultBean> result;
  news_dart_bean(this.code,this.message,this.result);

  factory news_dart_bean.fromJson(Map<String, dynamic> json) => _$news_dart_beanFromJson(json);
  Map<String, dynamic> toJson() => _$news_dart_beanToJson(this);

  @override
  String toString() {
    return 'news_dart_bean{code: $code, message: $message, result: $result}';
  }


}
@JsonSerializable()
class NewsResultBean{
  String path;
  String image;
  String title;
  String passtime;

  NewsResultBean(this.path,this.title,this.image,this.passtime);

  factory NewsResultBean.fromJson(Map<String, dynamic> json) => _$NewsResultBeanFromJson(json);
  Map<String, dynamic> toJson() => _$NewsResultBeanToJson(this);

  @override
  String toString() {
    return 'NewsResultBean{path: $path, image: $image, title: $title, passtime: $passtime}';
  }


}